package bg.btanev.eightyfour.shared.dto.dtobase;

import java.io.Serializable;

/**
 *
 * @author B.Tanev
 *
 * @param <ID>
 */
public abstract class DomainDtoEntity<ID extends Serializable> implements DomainDto, EntityDto<ID> {
	/**
	 *
	 */
	private static final long serialVersionUID = 7851448386637458735L;

	/**
	 * Entity unique identifier place holder.
	 */
	private ID id;

	public DomainDtoEntity() {
		this(null);
	}

	protected DomainDtoEntity(ID id) {
		super();
		setId(id);
	}

	@Override
	public ID getId() {
		return id;
	}

	public void setId(ID id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return "DomainDtoEntity [id=" + id + "]";
	}
}
